<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>预览文件</title>
</head>
<body>
<script type="text/javascript" src="./jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="./jquery.media.js"></script>

<script>
    window.onload=function(){
        let pdf=document.getElementById("pdf")
        pdf.href='/pdfs/123456.pdf'
    }
    $(function() {
        $('a.media').media({width:'100%', height:'900px'});
    });
</script>
<div>
    <a class="media" href="" id="pdf">1111</a>
    <img src="../system/bolandengbao.png">
</div>
</body>
</html>